package com.atguigu.tingshu.common.threadpool;

import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Author:huzhongkui
 * Date: 2025-03-19 星期三 11:09:02
 * Description:
 */

@Data
@ConfigurationProperties(prefix = "app.threadpool")
public class ThreadPoolProperties {

    private Integer corePoolSize = 2 * Runtime.getRuntime().availableProcessors();// 默认的
    private Integer maxPoolSize = 4 * Runtime.getRuntime().availableProcessors(); // 默认的
    private Integer queueSize = 50;
}
